﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="warehouseGoods.aspx.cs" Inherits="WebApp.admin.warehouse.warehouseGoods" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>       
</title><link href="../css/skin.css" rel="stylesheet" type="text/css" />
<script src="../jsinc/MdiWin.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">

    function checkWarehouseGoodsForm() {

        var goodsBatchNo = document.getElementById("txtGoodsBatchNo");
        if (goodsBatchNo.value == "") {
            alert("请输入商品名称！");
            goodsBatchNo.focus();
            return false;
        }

        var warehouse = document.getElementById("ddlWarehouse");
        if (warehouse.options[warehouse.selectedIndex].value == "0") {
            alert("请选择仓库！");
            warehouse.focus();
            return false;
        }

        var stockPrice = document.getElementById("txtStockPrice");
        if (stockPrice.value == "") {
            alert("请输入采购价！");
            stockPrice.focus();
            return false;
        }

        var goodsCount = document.getElementById("txtCount");
        if (goodsCount.value == "") {
            alert("请输入商品名称！");
            goodsCount.focus();
            return false;
        }

        var remark = document.getElementById("txtRemark");
        if (remark.value == "") {
            alert("请输入备注！");
            remark.focus();
            return false;
        }

        return true;
    }

</script>

 </head>
<body class="body" >
    <table class="main" cellpadding="0" cellspacing="0">

        <tr>

            <td class="td_middle_middle">
                <div class="maincontent">
                <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
所在位置：商品列表->采购入库
<a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
                    <form name="form1" id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                            <td class="td_title">
                                    商品名称：</td>
                                <td class="td_content">
                                  <asp:Label ID="lblGoodsName" runat="server" Text=""></asp:Label>
                                  </td>
                               </tr>
                            <tr>
                            <td class="td_title">
                                    商品批次号：</td>
                                <td class="td_content">
                                 
                                        <input id="txtGoodsBatchNo" type="text" runat="server" />*</td>
                               </tr>
                             <tr>
                            <td class="td_title">
                                    选择仓库：</td>
                                <td class="td_content">
                                  <asp:DropDownList ID="ddlWarehouse" runat="server"></asp:DropDownList>
                                    *</td>
                               </tr>
                                      <tr>
                            <td class="td_title">
                                    采购价：</td>
                                <td class="td_content">
                                    <asp:TextBox ID="txtStockPrice" runat="server" onpaste="return false" style="ime-mode: disabled" onkeypress="if(event.keyCode&lt;48 || event.keyCode>57)event.returnValue=false"></asp:TextBox>
                                    *</td>
                               </tr>
                          <tr>
                            <td class="td_title">
                                    数量：</td>
                                <td class="td_content">
                                    <asp:TextBox ID="txtCount" runat="server" onpaste="return false" style="ime-mode: disabled" onkeypress="if(event.keyCode&lt;48 || event.keyCode>57)event.returnValue=false"></asp:TextBox>
                                    *</td>
                               </tr>
                                  
                               <tr>  
                                <td class="td_title">
                                    备注：</td>
                                <td class="td_content">
                                   <asp:TextBox id="txtRemark" runat="server" TextMode="MultiLine"></asp:TextBox>  *最多200个字符</td>
                            </tr>
                            <tr>
                            <td></td>
                                <td>
                                   <asp:Button ID="Button1" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkWarehouseGoodsForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  />
                               
                                    </td>
                            </tr>
                        </table>
                    </form>
                    </div>

            </td>

        </tr>

    </table>
</body>
</html>
